<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>VUE循环-v-for-迭代对象</title>
        <script type="text/javascript" src="https://unpkg.com/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <p>-----------------第一种遍历方式-------------------</p>
            <p v-for="value in site">
                value:{{value}}
            </p>
            <p>-----------------第二种遍历方式-------------------</p>
            <p v-for="(value, key) in site">
                key:{{key}}, value:{{value}}
            </p>
            <p>-----------------第三种遍历方式-------------------</p>
            <p v-for="(value, key, index) in site">
                index:{{index}}, key:{{key}}, value:{{value}}
            </p>
        </div>
    </body>
    <script type="text/javascript">
        var vueObj = new Vue({
            el: '#app',
            data: {
                site: {
                    name: '百度', 
                    url: 'www.baidu.com',
                    creator: '李彦宏'
                }
            }
        });
    </script>
</html>